import os, time
os.chdir("C:/Program Files/Subversion/bin/")
def update():
    print "Updating..."
    os.system('svn.exe update D:/lighttpd/htdocs')
    os.system('svn.exe update D:/source/cake/cstrike/addons/eventscripts/streaminmusic')
    f = open('D:/lighttpd/htdocs/lastupdate.txt','w')
    f.write(str(time.time()))
    f.close()
    print "Updated"
update()